package com.androidhive.androidlistview;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class SingleListItem extends Activity{
	
	public final static String cropname = null;
	@Override
    public void onCreate(Bundle savedInstanceState) {
		this.setTitle("Search Crop By Name");
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.single_list_item_view);
        
      
        
	}
public void sendMessage(View view) {
		
		
		
		
		
		
		// System.out.println("HareKrishna");
	    Intent intent = new Intent(this, ListViewCheckboxesActivity.class);
	    EditText crop = (EditText) findViewById(R.id.crop);
	   
	    String crops = crop.getText().toString().trim();
	   
	    intent.putExtra(cropname, crops);
	    
	  //  System.out.println("HareKrishna");
	    Log.d("MyApp","I am here");
	    startActivity(intent);
	}
}
